package ch04;

/**
 * Created by 其 on 2016/3/20.
 */
class Clothes1 {
    String color;
    char size;
}

public class Field {
    public static void main(String[] args) {
        Clothes1 sun = new Clothes1();
        Clothes1 spring = new Clothes1();

        sun.color = "red";
        sun.size = 'S';
        spring.color = "green";
        spring.size = 'M';

        System.out.printf("sun (%s, %c)%n", sun.color, sun.size);
        System.out.printf("spring (%s, %c)%n", spring.color, spring.size);
    }
}